package com.jumi.microservice.constant;

import com.jumi.microservice.common.exception.BusinessExceptionAssert;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/8/28 15:45
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
public enum SupplyServerEnum implements BusinessExceptionAssert {

    FAIL_SUPPLY_STOCK_RESULT(500,"供应链获取库存数据错误"),
    FAIL_SUPPLY_STOCK_NULL(500,"物料可用库存为0"),
    FAIL_STOCK_NUM_BIG(500,"添加库存数量不能大于物料库存数量")
    ;

    private Integer code;

    private String message;

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    SupplyServerEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
